package operation;

import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-04-14
 * Time: 14:01
 */
public class ExitOperation implements Operation{
    @Override
    public void work(BookList booklist) {
        System.out.println("退出系统");
        int cursize = booklist.getBooksize();
        for(int i=0; i<cursize; i++) {
            booklist.setBooks(i,null);
        }
        System.exit(0);
    }
}
